package com.youlu.campus.web.point;

import com.youlu.campus.service.platform.PointPlatformConfigService;
import com.yuelin.infrastructure.quantum.common.QResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PointPlatformConfigController {
    @Autowired
    private PointPlatformConfigService pointPlatformConfigService;

    /**
     * 积分平台平台配置
     *
     * @return
     */
    @GetMapping("/mini-app/point/platform-config")
    public QResult getPlatformConfig() {
        return QResult.success(pointPlatformConfigService.find());
    }

    /**
     * 获取AI平台配置
     *
     * @return
     */
    @GetMapping("/public/mini-app/ai/point/platform-config")
    public QResult findAIPlatformConfig() {
        return QResult.success(pointPlatformConfigService.findAIPlatformConfig());
    }

}
